package com.vdong.trade.trading.entity.mo;

import com.vdong.trade.trading.common.foundation.FoundationMO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 提现表
 *
 * @author zhoulongbiao
 * @Date 2018/12/6 14:33
 */

@Data
@Entity
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
@Table(name = "`withdraw`")
public class WithdrawMO extends FoundationMO {

    /**
     * id
     */
    @Id
    @Column(name = "id")
    private Long id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 完成时间
     */
    @Column(name = "complete_time")
    private Date completeTime;

    /**
     * 提现金额
     */
    @Column(name = "money")
    private BigDecimal money;

    /**
     * 剩余可提现金额
     */
    @Column(name = "surplus_money")
    private BigDecimal surplusMoney;

    /**
     * 用户类型
     */
    @Column(name = "user_type")
    private String userType;

    /**
     * 是否有效  0 ：无效 1：有效
     */
    @Column(name = "status")
    private String status;

    /**
     * 提现状态：0.申请提现(转账)  1.提现成功（确认转账） 2.提现失败（拒绝转账）
     */
    @Column(name = "withdraw_status")
    private String withdrawStatus;

    /**
     * 入账开户银行
     */
    @Column(name = "bank")
    private String bank;

    /**
     * 银行卡号
     */
    @Column(name = "bank_account")
    private String bankAccount;

    /**
     * 提现失败原因
     */
    @Column(name = "reason")
    private String reason;

    /**
     * 公司名字
     */
    @Column(name = "company")
    private String company;

    /**
     * 流水号
     */
    @Column(name = "trading_no")
    private String tradingNo;

    /**
     * 订单号
     */
    @Column(name = "order_no")
    private String orderNo;

}